package com.neusoft.demo.mapper;


import com.neusoft.demo.pojo.Foods;
import com.neusoft.demo.pojo.User;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface UserMapper {
    @Select("select * from user where userName=#{userName} and password=#{password}")
    public User userLogin(String userName,String password);
    @Insert("insert into user(userName,password,userSex) " +
            "values(#{userName},#{password},#{userSex})")
    public  int addUser(User user);
}
